from django import forms

class NewURL(forms.Form):	
	url = forms.URLField(label='Enter URL')

	def clean_url(self):
		data = self.cleaned_data['url']
		if "ftp://" in data:
			raise forms.ValidationError("Only HTTP is allowed!")

		return data	
